
local animimg001 = lv.img_buf_load_file( "animimg001.png" )
local animimg002 = lv.img_buf_load_file( "animimg002.png" )
local animimg003 = lv.img_buf_load_file( "animimg003.png" )

local anim_imgs = lv.animimg_gen_imgdsc_array( animimg001, animimg002, animimg003 )

local animimg0 = lv.animimg_create( lv.scr_act() );

lv.obj_center( animimg0 );

lv.animimg_set_src( animimg0, anim_imgs, 3 );

lv.animimg_set_duration( animimg0, 1000 );

lv.animimg_set_repeat_count( animimg0, lv.LV_ANIM_REPEAT_INFINITE );

lv.animimg_start( animimg0 );
